package com.lims.service.admin.impl;

import java.util.List;

import com.lims.dao.admin.IAdminDAO;
import com.lims.po.admin.Admin;
import com.lims.service.admin.IAdminService;

public class AdminServiceImpl implements IAdminService {
	private IAdminDAO adminDAO;
	public Long countObject() {
		return adminDAO.countObject();
	}


	public Boolean passwordModification(int pid, String plainPassword,
			String MD5Password) {
		return adminDAO.passwordModification(pid, plainPassword, MD5Password);
	}


	public List<Admin> selectAll() {
		return adminDAO.selectAll();
	}

	public Admin selectById(Object id) {
		return adminDAO.selectById(id);
	}


	public IAdminDAO getAdminDAO() {
		return adminDAO;
	}

	public void setAdminDAO(IAdminDAO adminDAO) {
		this.adminDAO = adminDAO;
	}


	public List<Admin> selectAdmin(String loginName, String MD5Password) {
		return adminDAO.selectAdmin(loginName, MD5Password);
	}


	public List<Admin> selectLoginByRoleType(long roleId, long journalID) {
		return adminDAO.selectLoginByRoleType(roleId, journalID);
	}

}
